package qsou.rpc.framework.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import qsou.rpc.framework.common.enums.RpcErrorMessageEnum;
import qsou.rpc.framework.common.enums.SerializationTypeEnum;

/**
 * @description:
 * @auther: wuxw
 * @Date: 2022/3/28 17:59
 */
public class RpcException extends RuntimeException {
  public RpcException(RpcErrorMessageEnum rpcErrorMessageEnum, String detail) {
    super(rpcErrorMessageEnum.getMessage() + ":" + detail);
  }
  public RpcException(String message, Throwable cause) {
    super(message, cause);
  }
  public RpcException(RpcErrorMessageEnum rpcErrorMessageEnum) {
    super(rpcErrorMessageEnum.getMessage());
  }
}